import request from '@/utils/request'

export default {

    //添加小节
    addVideo(eduVideo){
        return request({
            url: '/eduservice/video/addVideo',
            method: 'post',
            data: eduVideo
          })
    },
    //修改小节
    updateVideo(eduVideo){
        return request({
            url: '/eduservice/video/updateVideo',
            method: 'post',
            data: eduVideo
          })
    },
    //删除小节
    deleteVideoById(id){
        return request({
            url: '/eduservice/video/'+id,
            method: 'delete'
          })
    },
    //根据小节id查小节
    getVideoInfoById(id){
        return request({
            url: '/eduservice/video/getVideoInfo/'+id,
            method: 'get'
          })
    },
    removeById(id) {
        return request({
          url: `/eduvod/video/${id}`,
          method: 'delete'
        })
      }

}